import logging,yagmail,yaml

def email(qq):
    r=yagmail.SMTP(user='2314336117@qq.com',password='ixpbgkkezjwodhif',host='smtp.qq.com')
    r.send(to='2314336117@qq.com',subject='yuekaooo',contents='shengban',attachments=qq)

def log_set():
    logging.basicConfig(filename='giao.txt',filemode='w+',format='%(funcName)s -> %(created)f -> %(message)s',level=logging.DEBUG)

def get_data_from_yaml(filepath):
    with open(filepath,'r',encoding='utf-8')as f:
        return yaml.safe_load(f)